<div class="vehicles index">
<h2><?php __('Vehicles');?></h2>
<p>
<?php
echo $paginator->counter(array(
'format' => __('P&aacute;gina %page% de %pages%, mostrando %current% registros de %count% total, empezando %start%, terminando en %end%', true)
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('id');?></th>
	<th><?php echo $paginator->sort('codigo');?></th>
	<th><?php echo $paginator->sort('activo');?></th>
	<th><?php echo $paginator->sort('titulo');?></th>
	<th><?php echo $paginator->sort('pais');?></th>
	<th><?php echo $paginator->sort('precio');?></th>
	<th><?php echo $paginator->sort('marca');?></th>
	<th><?php echo $paginator->sort('modelo');?></th>
	<th><?php echo $paginator->sort('ano');?></th>
	<th><?php echo $paginator->sort('kilometraje');?></th>
	<th><?php echo $paginator->sort('color');?></th>
	<th><?php echo $paginator->sort('cilindraje');?></th>
	<th><?php echo $paginator->sort('negociable');?></th>
	<th><?php echo $paginator->sort('transmision');?></th>
	<th><?php echo $paginator->sort('convertidogas');?></th>
	<th><?php echo $paginator->sort('diesel');?></th>
	<th><?php echo $paginator->sort('placa');?></th>
	<th><?php echo $paginator->sort('ciudad_placa');?></th>
	<th><?php echo $paginator->sort('ubicacion');?></th>
	<th><?php echo $paginator->sort('descripcion');?></th>
	<th><?php echo $paginator->sort('archivo');?></th>
	<th><?php echo $paginator->sort('agent_id');?></th>
	<th><?php echo $paginator->sort('vehiclecat_id');?></th>
	<th><?php echo $paginator->sort('created');?></th>
	<th><?php echo $paginator->sort('modified');?></th>
	</tr>
<?php
$i = 0;
foreach ($vehicles as $vehicle):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $vehicle['Vehicle']['id']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['codigo']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['activo']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['titulo']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['pais']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['precio']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['marca']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['modelo']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['ano']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['kilometraje']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['color']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['cilindraje']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['negociable']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['transmision']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['convertidogas']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['diesel']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['placa']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['ciudad_placa']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['ubicacion']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['descripcion']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['archivo']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['agent_id']; ?>		</td>
		<td>
			<?php echo $html->link($vehicle['Vehiclecat']['name'], array('controller'=> 'vehiclecats', 'action'=>'view', $vehicle['Vehiclecat']['id'])); ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['created']; ?>		</td>
		<td>
			<?php echo $vehicle['Vehicle']['modified']; ?>		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>
